using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BossAttack : MonoBehaviour
{
    private BossController Boss;
    private Character character;
    private GameObject Player;
    private void Start()
    {
        Boss = FindObjectOfType<BossController>();
        character = GameObject.FindGameObjectWithTag("Player").GetComponent<Character>();
    }

    public void OnTriggerEnter2D(Collider2D other)
    {
        if (other.tag == "Player")
        {
            character.TakeDamage(Boss.bossParameter.MeleeAttackValue*Boss.bossParameter.BossAttackMultiplier);
        }
    }
}
